Optimal. Leaf size=10 \[ \frac{1}{\sqrt{a \csc ^2(x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0482915, antiderivative size = 10, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 15, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.2, Rules used = {3657, 4124, 32} \[ \frac{1}{\sqrt{a \csc ^2(x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3657
Rule 4124
Rule 32
Rubi steps
\begin{align*} \int \frac{\cot (x)}{\sqrt{a+a \cot ^2(x)}} \, dx &=\int \frac{\cot (x)}{\sqrt{a \csc ^2(x)}} \, dx\\ &=-\left (\frac{1}{2} a \operatorname{Subst}\left (\int \frac{1}{(a x)^{3/2}} \, dx,x,\csc ^2(x)\right )\right )\\ &=\frac{1}{\sqrt{a \csc ^2(x)}}\\ \end{align*}
Mathematica [A] time = 0.0111266, size = 10, normalized size = 1. \[ \frac{1}{\sqrt{a \csc ^2(x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.019, size = 11, normalized size = 1.1 \begin{align*}{\frac{1}{\sqrt{a+a \left ( \cot \left ( x \right ) \right ) ^{2}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 0.96249, size = 11, normalized size = 1.1 \begin{align*} \frac{1}{\sqrt{\frac{a}{\sin \left (x\right )^{2}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 1.57984, size = 74, normalized size = 7.4 \begin{align*} -\frac{\sqrt{2} \sqrt{-\frac{a}{\cos \left (2 \, x\right ) - 1}}{\left (\cos \left (2 \, x\right ) - 1\right )}}{2 \, a} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 2.77447, size = 12, normalized size = 1.2 \begin{align*} \frac{1}{\sqrt{a \cot ^{2}{\left (x \right )} + a}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.2671, size = 39, normalized size = 3.9 \begin{align*} \frac{\sqrt{a} \sin \left (x\right )}{{\left (a \sin \left (x\right )^{2} -{\left (\sin \left (x\right )^{2} - 1\right )} a\right )} \mathrm{sgn}\left (\sin \left (x\right )\right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]